package com.example.healthmanagement.dao;

import com.example.healthmanagement.entity.SportRem;
import com.example.healthmanagement.entity.SportRem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SportRemRepository extends JpaRepository<SportRem, Long> {

    List<SportRem> getSportRemsByDeleted(Boolean deleted);

    SportRem findSportRemByIdAndDeleted(int id, boolean deleted);

    List<SportRem> findSportRemsByDeletedAndAndSportNameContaining(boolean deleted, String key);

    List<SportRem> findSportRemsByDeletedAndBmiId(boolean deleted, int bmiId);
}
